package com.sxhuangjiang.litadmin.admin.controller;

import com.sxhuangjiang.litadmin.common.Res;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * 后台管理模块的首页控制器
 * @author huang
 * @version V1.0
 * @date 2019-11-08 11:30
 */
@Controller
@RequestMapping("/admin")
@Slf4j
public class IndexController {
    @GetMapping("/login")
    public String p_login(){
        return "admin/login";
    }

    @GetMapping("/index")
    public String p_index(){
        return "admin/index";
    }

    @PostMapping("/login")
    public Res login(){
        return null;
    }
}
